<?PHP
// Arkona Integraion Class Test Script
require("/home/opentrack/lib/ArkonaInterop.php");

$AX				=	new ArkonaDMS_Interop;

		/* REQUIRED FIELDS
		
		VIN  	 						Y  	A17
		StockNumber 					Y 	A9
		DocumentNumber 					N 	A9 	Populated (usually with stock number) when GLentries are posted
		Status 							Y 	A1 	I=Inventory, C=Customer 
		TypeNU  	 					Y  	A1 	N=New, U=Used, D=Demo, R=Rental
		BusinessOfficeFranchiseCode  	Y  	A3  Use SaleGroupLookup for valid codes (VehicleSaleGroupTableRequest?)  
		ModelYear  	 					Y  	N4,0  	 CCYY 
		Make  	 						Y  	A25
		Model  	 						Y  	A25
		*/
		
$add_fields	=	array(	"VIN"=>"1FMJU1J5XAEB54949", 
						"StockNumber"=>"10F512", 
						"Status"=>"I", 
						"TypeNU"=>"N", 
						"BusinessOfficeFranchiseCode"=>"CR1", 
						"ModelYear"=>2010,
						"Make"=>"Ford",
						"Model"=>"Expedition"
				);	

print_r(Vehicle::VehicleAdd($add_fields));

exit();
?>